- content_for :meta do
  %meta{:name => "Description", :content => @page.description}
- content_for :title do
  = @page.title
- content_for :head do
  = stylesheet_link_tag 'pagination'
- content_for :page_description do
  = @page.description
- unless @page.title_is_invisible?
  %h1= @page.title
- if logged_in? && current_user.is_admin?
  - content_for :admin_nav do
    %div.edit
      [
      %a{:href => edit_page_url(@page), :title => "Edit " + @page.title}edit
      ]
= @page.content
- unless @page_galleries.empty?
  %hr
  %div.page_galleries
    - @page_galleries.each do |gallery|
      %table.index_gallery
        %tr
          %td.gallery_preview
            %a{:href => gallery_url(gallery), :title => gallery.text_description}
              %img.photo_thumb{:src => gallery.thumbnail, :title => gallery.text_description}
        %tr
          %td.gallery_name= gallery.name
  %div.pagination
    = will_paginate @page_galleries, :class => "flickr_pagination"
    %div.page_info
      = page_entries_info @page_galleries